package com.rico.queue.controller;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.rico.service.TestSeataService;
import com.rico.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestSeataController {

    @Autowired
    private TestSeataService testService;

    @RequestMapping("/testSeata")
    @ResponseBody
    public String testSeata(){
        return testService.testSeata();
    }
}
